using System;
using System.Collections.Generic;
using System.Text;
using AAM.BIZ;
using AAM;

namespace CMS.BIZ
{
    [DatabaseTable(TableName = "MessageGroupItems",TableAlias="msgGrpItm")]
    public class BizMessageGroupItem : BizObject
    {
        public static readonly ObjectType ObjectType = new ObjectType("BizMessageGroupItem");


        private int messageGroupID = 0;
        private int memberID = 0;

        public BizMessageGroupItem()
            : base(ObjectType, new object[] { 0, 0 })
        {
        }


        [DatabaseRow(PrimaryKey = true)]
        public int MessageGroupID
        {
            get { return messageGroupID; }
            set { messageGroupID = value; ID[0] = value; }
        }
        [DatabaseRow(PrimaryKey = true,PrimaryKeyIndex=1)]
        public int MemberID
        {
            get { return memberID; }
            set { memberID = value; ID[1] = value; }
        }
    }
}
